package git.soulbgm.pojo;

import git.soulbgm.common.annotation.IdBuild;
import git.soulbgm.common.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import java.util.Date;

/**
 * 订单表
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2020-11-06 17:27:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Orders {

    /**
     * ID
     */
    @Id
    @IdBuild(IdType.SEQUENCE)
    private Long id;

    /**
     * 账号ID
     */
    private Long accountId;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 支付金额
     */
    private Double payAmount;

    /**
     * 创建订单时间
     */
    private Date createTime;

    /**
     * 订单状态 0:待付款 1:待发货 2:待收货 3:完成 4:关闭
     */
    private Integer status;


}